<div class="post2">
    <h2>Nuevo Usuario</h2>
    <div id="content">
        <% form_for :pendinghorse, :url => {:action => 'create'} do |f| %>
        <%= f.error_messages %>
        <span style="FLOAT: left">
        <div class="margen">
            <table width='430' border='3px' cellpadding='0' cellspacing='0' bordercolor='#d1ccc7'>
                <tr>
                    <td>
                        <div class="margen">
                            <table>
                                <tr>
                                    <td width="60%" height="50px">
                                        <%= f.label 'Nombre del caballo' %>
                                        <br/>
                                        <%= f.text_field :horse_name %>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%" height="50px">
                                        <%= f.label 'Sexo o Genero' %>
                                        <br/>
                                        <%= f.text_field :horse_sex_id %>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%" height="50px">
                                        <%= f.label 'Fecha de nacimiento' %>(aaaa)
                                        <br/>
                                        <%= f.text_field :born %>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="75%" height="50px">
                                        <%= f.label 'Fecha de fallecimiento' %>(Opcional)
                                        <br/>
                                        <%= f.text_field :died %>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%" height="60px">
                                        <%= f.label 'Madre del caballo' %>
                                        <br/>
                                        <%= f.text_field :mother_horse_id %>
                                    </td>
                                    <td align="bottom">
                                        <%= link_to '<img src="/images/searchhorse.png" border="0px" align="left" style="padding-right:10px"; alt="Madre" title="Buscar Madre">', '/horses/search',:class=>'nyroModal opacityit', :rev=>'gal' %>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%" height="50px">
                                        <%= f.label 'Padre del caballo' %>
                                        <br/>
                                        <%= f.text_field :father_horse_id %>
                                    </td>
                                    <td>
                                        <%= link_to '<img src="/images/searchhorse.png" border="0px" align="left" style="padding-right:10px"; alt="Padre" title="Buscar Padre">', '/horses/search',:class=>'opacityit nyroModal', :rev=>'gal' %>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%" height="50px">
                                        <%= f.label 'Familia del caballo' %>
                                        <br/>
                                        <%= f.text_field :family_id %>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <p>
                            <center>
                                <%= f.submit 'Crear' %>
                                <%= button_to 'Cancelar', horses_path %>
                            </center>
                        </p>
                        <% end %>
                    </td>
                </tr>
            </table>
        </div>
    </span>
    </div>
    <!-- link_to 'Back', pendinghorses_path -->
</div>
</div>
<div id="sidebar2">
    <ul>
        <li>
            <h2>Herramientas</h2>
            <ul>
                <li>
                    <%= link_to 'Insertar Caballo', new_horse_path %>
                </li>
                <li>
                    <%= link_to 'Ver Familias', families_path %>
                </li>
                <li>
                    <%= link_to 'Ver Jefes de Razas', breedheads_path %>
                </li>
            </ul>
        </li>
    </ul>
</div>
